#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc,char *argv[])
{
    
    
    int fd=0;
    
    fd=open(argv[1],O_RDONLY);
    mh(fd);
    close(fd);
    return 0;
}
void mh(int fd){
    int count=0;
    char c;
    while(read(fd,&c,1)!=0)
    {
        putchar(c);
        if(c == '\n')
        count++;
        if(count == 10)
        break;
    }
}
